<?php
namespace My\Model;

use Utuo\UtuoModel;

class DistributionShopGoodsMaterialModel extends UtuoModel {
	
	protected $_auto = array(
			array('content', 'getContent', self::MODEL_BOTH, 'callback'),
			array('createTime', 'time', self::MODEL_BOTH, 'function'),
	);
	
	protected $_validate = array(
			array('productId', 'require', '请先选择商品', self::MUST_VALIDATE),
	);
	
	/**
	 * 内容
	 * @return boolean|mixed
	 */
	public function getContent() {
		if( !isset( $_REQUEST['content']) ) return false;
		$content = I("content", '', 'htmlspecialchars_decode');
		return $content;
	}
	
	
	
}